package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HomestayApplyMapper;
import com.ruoyi.system.domain.HomestayApply;
import com.ruoyi.system.service.IHomestayApplyService;

/**
 * 民宿申请审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class HomestayApplyServiceImpl implements IHomestayApplyService 
{
    @Autowired
    private HomestayApplyMapper homestayApplyMapper;

    /**
     * 查询民宿申请审核
     * 
     * @param applyId 民宿申请审核主键
     * @return 民宿申请审核
     */
    @Override
    public HomestayApply selectHomestayApplyByApplyId(Long applyId)
    {
        return homestayApplyMapper.selectHomestayApplyByApplyId(applyId);
    }

    /**
     * 查询民宿申请审核列表
     * 
     * @param homestayApply 民宿申请审核
     * @return 民宿申请审核
     */
    @Override
    public List<HomestayApply> selectHomestayApplyList(HomestayApply homestayApply)
    {
        return homestayApplyMapper.selectHomestayApplyList(homestayApply);
    }

    /**
     * 新增民宿申请审核
     * 
     * @param homestayApply 民宿申请审核
     * @return 结果
     */
    @Override
    public int insertHomestayApply(HomestayApply homestayApply)
    {
        return homestayApplyMapper.insertHomestayApply(homestayApply);
    }

    /**
     * 修改民宿申请审核
     * 
     * @param homestayApply 民宿申请审核
     * @return 结果
     */
    @Override
    public int updateHomestayApply(HomestayApply homestayApply)
    {
        return homestayApplyMapper.updateHomestayApply(homestayApply);
    }

    /**
     * 批量删除民宿申请审核
     * 
     * @param applyIds 需要删除的民宿申请审核主键
     * @return 结果
     */
    @Override
    public int deleteHomestayApplyByApplyIds(Long[] applyIds)
    {
        return homestayApplyMapper.deleteHomestayApplyByApplyIds(applyIds);
    }

    /**
     * 删除民宿申请审核信息
     * 
     * @param applyId 民宿申请审核主键
     * @return 结果
     */
    @Override
    public int deleteHomestayApplyByApplyId(Long applyId)
    {
        return homestayApplyMapper.deleteHomestayApplyByApplyId(applyId);
    }
}
